package chap4.Task;
import java.util.Scanner;
public class Task14 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("输入任意正整数:");
        long i = input.nextLong();
        long a, b, c;
        b = 0;
        while (i != 0) {
            a = i % 10;
            b = b * 10 + a;
            i = i / 10;  //或(i=(i-a)/10),目的都是缩小10倍，个位数不影响缩小的倍数
        }
        c = b + 1024;
        System.out.println("倒转后结果为" + b + ",加上1024=" + c);
    }

}
